home *** CD-ROM | disk | FTP | other *** search
/ Aminet 19 / Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso / Aminet / text / misc / nroff.lha / nroff / tests.uu / tests.shar.Z / tests.shar / nh.out < prev    next >
Text File  |  1997-01-24  |  3KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                       Test of NH Macro
  11.  
  12. Note  that  we  do not need the TL, AU, AI, AB, AE macros to
  13. use -ms, just  paragraphs.    We  don't  even  need  section
  14. headings, though  that  helps.  Besides, that is what we are
  15. testing here!  
  16.  
  17.  
  18. 1.  MAJOR SECTION 
  19.  
  20. This should be section 1.  Always end the section title with 
  21. a paragraph of some sort.  Here I use left block  paragraph,
  22. LP.  
  23.  
  24. It is  a  major  section, in this case.  Note that I started
  25. with ".NH 0" here (which resets the left-most level  to  "1"
  26. but  I  could have also just started with ".NH 1" indicating
  27. level "1" section.  Also note that NH requires an  argument,
  28. even if it is just 1 (bug, I am afraid).  
  29.  
  30.  
  31. 2.  MAJOR SECTION 
  32.  
  33. This should be section 2.  Another major section.  
  34.  
  35.  
  36. 2.1.  Level 2 Section 
  37.  
  38. This should be section 2.1.  This was specified with ".NH 2" 
  39. indicating level 2 section.  
  40.  
  41.  
  42. 2.2.  Another Level 2 Section 
  43.  
  44. This should  be  section  2.2.   Also specified with ".NH 2"
  45. indicating level 2 section.  
  46.  
  47.  
  48. 2.3.  Yet Another Level 2 Section 
  49.  
  50. This should be section 2.3.  Yes,  this  too  was  specified
  51. with ".NH 2" indicating level 2 section.  
  52.  
  53.  
  54. 3.  BACK TO MAJOR SECTION 
  55.  
  56. This should  be  section  3.   It was specified with ".NH 1"
  57. indicating back to most major section.  Note that at each NH 
  58. macro, all higher level section numbers are  reset  to  zero
  59. and the current level is incremented.  
  60.  
  61.  
  62.  
  63.  
  64.                         22 July 1990
  65.  
  66.  
  67.  
  68.  
  69.                            - 2 -
  70.  
  71.  
  72. 3.1.  Level 2 Section 
  73.  
  74. This should  be  section  3.1.    It  is  a  sub  section, a
  75. so-called level 2 section.  The advantage  of  just  keeping
  76. track of the levels is that you can rapidly add new sections 
  77. to  a  text without changing the section numbers everywhere.
  78. You just pick the correct level and pump in the text.  
  79.  
  80.  
  81. 3.2.  Another Level 2 Section 
  82.  
  83. This should be section 3.2.  It is also  a  sub  section,  a
  84. so-called level 2 section.  
  85.  
  86.  
  87. 3.2.1.  Level 3 Section 
  88.  
  89. This should be section 3.2.1.  Now we go one level deeper in 
  90. section numbering.    It  was  specified with ".NH 3" as you
  91. would expect.  
  92.  
  93.  
  94. 3.2.2.  Another Level 3 Section 
  95.  
  96. This should be section 3.2.2.  Same level as  last  section,
  97. but increase the count.  
  98.  
  99.  
  100. 3.2.2.1.  Level 4 Section 
  101.  
  102. This should be section 3.2.2.1.  Yet one more level; this is 
  103. level 4 (the number of numbers as well).  
  104.  
  105.  
  106. 3.2.2.2.  Another Level 4 Section 
  107.  
  108. This should be section 3.2.2.2.  
  109.  
  110.  
  111. 3.3.  Back to Level 2 Section 
  112.  
  113. This should be section 3.3.  Note we can skip sections going 
  114. up, but it does not make sense to skip from level 2 to level 
  115. 4 while going down, though I guess it is possible.  
  116.  
  117.  
  118. 3.3.1.  And Level 3 Section 
  119.  
  120. This should  be section 3.3.1.  One more level down to level
  121. 3.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                         22 July 1990
  131.  
  132.  
  133.  
  134.  
  135.                            - 3 -
  136.  
  137.  
  138. 4.  MAJOR SECTION 
  139.  
  140. This should be section 4.  I am getting tired.  It seems  to
  141. be working  fine.    I  am glad i added the ".if" command to
  142. nroff, which makes this all possible.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.                         22 July 1990
  197.  
  198.  
  199.